//
//  WebSocketServer.swift
//  Exchange
//
//  Created by rui on 2018/8/6.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit

class WebSocketServer: Serverable {
    var serverStatus: ServerStatus = .test
    
    var baseurl: String {
        var url = "ws://47.98.139.149:8086/ws"
        switch serverStatus {
        case .relese:
            url = "ws://47.98.139.149:8086/ws"
        case .develop:
            url = "ws://47.98.139.149:8086/ws"
        case .test:
            url = "ws://47.75.194.232:8086/ws"
        }
        return url
    }
    
    var publicKey: String? {
        return nil
    }
    
    var privateKey: String? {
        var privateKey = "20180720"
        switch serverStatus {
        case .relese:
            privateKey = "20180720"
        case .develop:
            privateKey = "20180720"
        case .test:
            privateKey = "20180720"
        }
        return privateKey
    }
    
    var apiVersion: String? {
        return nil;
    }
}
